import Vue from 'vue'

export default {
  searchUserService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectuser,config).then(r=>{
      callback(r.data);
    });
  },
  delUserService:function (config,callback){
    Vue.axios.get(Vue.prototype.$g.deluser, {params:
        config
      }).then(r=>{
      callback(r.data);
    });
  },
  delUserAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.deluserall,config).then(r=>{
      callback(r.data);
    });
  },
  addUserService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.adduser,config).then(r=>{
      callback(r.data);
    });
  },
  editUserService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.edituser,config).then(r=>{
      callback(r.data);
    });
  },


}